//
//  ViewController.m
//  XHFoundationModule
//
//  Created by xinph on 2020/3/11.
//  Copyright © 2020 xinph. All rights reserved.
//

#import "ViewController.h"
#import "XHDemoViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.navigationItem.title = @"首页";
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    XHDemoViewModel *viewModel = [[XHDemoViewModel alloc] initWithServices:nil params:nil];
    XHDemoViewController *demoVC = [[XHDemoViewController alloc] initWithViewModel:viewModel];
    [self.navigationController pushViewController:demoVC animated:true];
}

@end
